<?

$srcDbHdr   = "GROUP_HDR";
$srcDbDtl   = "GROUP_DTL";
$srcDbPos   = "POS";
$srcDbDept  = "DEPARTMENT";

$Db = new oracleDb;
$Db->init($_SESSION["ORCLU"], 
           $_SESSION["OPASS"],
           $_SESSION["SID"],
           _NO_COMMENT);

if ($Db->connect()) {
	
	$thisMdl  = "GROUP";
      
	$optPrivs = "";
  
  if($UID->getPrivs( $thisMdl, _VIEW_RIGHTS) > 0){
  	
  	$optPrivs .=	"  <td> ".$GHtml->formInputButton("<font size='5'>View</font>", // The label
            							                          "view",                       // var Name
            							                          "View",                       // var value
            							                          $entryBoxStyle)." </td>\n";   // var properties
  }
  if($UID->getPrivs( $thisMdl, _EDIT_RIGHTS) > 0){
  	
  	$optPrivs .=	"  <td> ".$GHtml->formInputButton("<font size='5'>Modify</font>", // The label
            							                          "modify",                       // var Name
            							                          "Modify",                       // var value
            							                          $entryBoxStyle)." </td>\n";     // var properties 
  }
  if($UID->getPrivs( $thisMdl, _DELETE_RIGHTS) > 0){			
  	
  	$optPrivs	.=	"  <td> ".$GHtml->formInputButton("<font size='5'>Delete</font>", // The label
            							                          "delete",                       // var Name
            							                          "Delete",                       // var value
            							                          $entryBoxStyle)." </td>\n";     // var properties
  }
  
  $groupId = $_POST["radioview"];
	
	if($_POST["transVariable"] != true){
	
  	echo  "<link rel=\"stylesheet\" type=\"text/css\" href=\"../myMenu.css\"/>\n".
  			  
  			  /**
          * This module js
          *
          */
  			  "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"javascript/misc.js\"></SCRIPT> \n".
  			  "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"javascript/ajax.js\"></SCRIPT> \n".
  			  
  	      "<form action=viewdboredit.php name='crtList' method=post>\n".
  				"<table border='1'>\n".
  				"<tr>\n".
  				"<input type='submit' value='back' name='back'>\n".
  			  $optPrivs.
  			  "<input type='hidden' name='radioview' value='".$_POST["radioview"]."'>\n".
  			  "<input type='hidden' name='selbox[]'  value='".$_POST["radioview"]."'>\n".
  				"</tr>\n".
  				"</table>\n".
  				"</form>\n";  
  
  }else{
    
    /* Do nothing */
  }
  
  require("views/view_html.php");       
}else{
	
	$Misc->usrDieJs("Db connection Failed!");
}
?> 